﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MountSilverLibraryRemake
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Trans trans = new Trans();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MountSilverLibraryRemake(ref trans));
            if (trans.getLoginFlag() == 1)
            {
                while (trans.getReloginFlag() == 0)
                {
                    Application.Run(new LibraryStageSelect(ref trans));
                    switch (trans.getStage()) 
                    {
                        case 1:Application.Run(new CheckLibrary()); break;
                        case 2:Application.Run(new AccessSale(ref trans)); break;
                        case 555:Application.Run(new RelatedFireWall.RelatedFireWall());break;
                    }
                }
            }
        }
    }
}
